download_url="https://gitee.com/weedd/plm-deploy/releases/download/v2.1.0/plm.tar.gz"
echo "下载地址： ${download_url}"
installPLM="plm.tar.gz"
curl -LOk -m 60 -o ${installPLM} ${download_url}

installPLM_download_url="https://gitee.com/weedd/plm-deploy/releases/download/v2.1.0/installPLM.sh"
PLM="installPLM.sh"
curl -LOk -m 60 -o ${PLM} ${installPLM_download_url}

if [ ! -f ${installPLM} ];then
	echo "下载在线安装包失败，请试试重新执行一次安装命令。"
	exit 1
fi
tar -xvf   ${installPLM}
chmod  777  installDocker.sh
chmod  777  installPLM.sh
/bin/bash installDocker.sh
/bin/bash installPLM.sh
